#ifndef __AHT20_AS
#define __AHT20_AS

#include "driver/i2c.h"
#include "driver/gpio.h"
#include "esp_types.h"
#include "esp_log.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/semphr.h"
#include "freertos/queue.h"

typedef struct
{
    void (* init)(void);
    void (* check)(void);
    void (* measures)(void);
    void (* read)(float *tem, float *hum);
    float temperature;
    float humidity;
} AHT20ClassStruct;

extern AHT20ClassStruct AHT20Class;

void AHT20_init(void);

#endif
